-- whirlpool
-- created by huanghr
-- 天空之城探索-时空裂痕

return {
    handleResult = function(index, para)

        local result = para.result;
        local attackerInfo = para.attacker;

        -- 战斗刚开始的时候defenser为第一波怪
        local skyExplore = ME.user.dbase:query("sky_explore", {});

        local islandInfo = skyExplore[index];

        islandInfo = table.restoreTable(islandInfo);

        local id = islandInfo["whirlpool_combat"][1];

        local defenserInfo = SkyWhirlpoolM.getDefenserInfo(id, islandInfo["explore_level"], islandInfo["whirlpool_combat"]);
        local record = para.record;
        local bonus = para.bonus;

        -- 创建一个战场
        SkyCombatM.createBattle(attackerInfo, defenserInfo, result, record, bonus);
    end,
};